#ifndef PIN_AUTH_H
#define PIN_AUTH_H

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
    AUTH_SUCCESS = 0,              // Success
    AUTH_INVALID_PIN = 1,          // Wrong PIN code
    AUTH_PIN_ERROR = 2,            // Server Error on PIN Auth call (e.g: server did not found account)
    AUTH_UNKNOWN = 7               // Catch all for unknown errors (e.g: out of memory, server unreachable)
} AuthReturnCode;

// This function provides purchase PIN code verification.  The parameters are:
//  
//     [in] pinCode = value entered as PIN code
//
// Return value should be an AuthReturnCode from the enumeration above                  
AuthReturnCode checkPurchaseCode(const char* pinCode);

// This function provides parental control PIN code verification.  The parameters are:
//  
//     [in] pinCode = value entered as PIN code
//
// Return value should be an AuthReturnCode from the enumeration above                  
AuthReturnCode checkParentalCode(const char* pinCode);

#ifdef __cplusplus
}
#endif

#endif /* PIN_AUTH_H */

